#include<stdio.h>

int main( void )
{
	int a,b,c,n;
	scanf("%d",&n);
	a=n/100;
	b=n/10%10;
	c=n%10;
	printf("%d %d %d\n",a,b,c);
	return 0;
}
